package com.headfirst.BehaviorMode.command.remote.version1;

import com.headfirst.BehaviorMode.command.remote.version1.equipment.Light;

public class LivingRoomLightOffCommand implements Command{

    Light light;

    public LivingRoomLightOffCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.off();
    }

    @Override
    public void undo() {
        light.on();
    }
}
